import { createI18n } from "vue-i18n";
//简体
import zn from "./zn";

//繁体
import f_zn from "./f_zn";

//英语
import en from "./en";

//阿拉伯语
import ar from "./ar";

// bn 孟加拉语.js
import bn from "./bn";

// de 德语.js
import de from "./de";

// es 西班牙.js
import es from "./es";

// fr 法语.js
import fr from "./fr";

// hi 印地语.js
import hi from "./hi";

// id 印尼.js
import id from "./id"; //1

// it 意大利.js
import it from "./it"; //1

// jpn 日语.js
import jpn from "./jpn"; //1

// ko 韩语.js
import ko from "./ko"; //1

// nl 荷兰.js
import nl from "./nl"; //1

// pt 葡萄牙.js
import pt from "./pt"; //1

// ru 俄语.js
import ru from "./ru"; //1

// tha 泰语.js
import tha from "./tha"; //1

// tr 土耳其.js
import tr from "./tr"; //1

// vi 越南.js
import vi from "./vi"; //1

export let i18n = createI18n({
  locale: "en", // 默认语言
  legacy: false, // composition API
  globalInjection: true, //全局生效$t
  messages: {
    zn,
    en,
    f_zn,
    ar,
    bn,
    de,
    es,
    fr,
    hi,
    id,
    it,
    jpn,
    ko,
    nl,
    pt,
    ru,
    tha,
    tr,
    vi,
  },
});
